package com.easyCms.base.common;

public class RespCode {

	/**
	 * 成功
	 */
	public final static String SUCCESS = "00000";
	public final static String SUCCESS_MESSAGE = "成功";

	/**
	 * 失败
	 */
	public final static String FAIL = "99999";
	public final static String FAIL_MESSAGE = "失败";

	/**
	 * 用户注册,修改,登录返回码
	 *
	 * @author lsquan
	 */
	public class User_Register {
		/**
		 * 验证码失败
		 */
		public final static String VERIFICATIONCODE_ERROR = "04001";
		public final static String VERIFICATIONCODE_ERROR_MESSAGE = "验证码错误";

		/**
		 * 息参数不能为空
		 */
		public final static String INFO_NOTNULL_ERROR = "04002";
		public final static String INFO_NOTNULL_ERROR_MESSAGE = "有输入信息为空";

		/**
		 * 手机号已被注册
		 */
		public final static String PHONE_HAD_REGISTERED = "04003";
		public final static String PHONE_HAD_REGISTERED_MESSAGE = "该手机号已被注册";

		/**
		 * 验证码超时，已失效
		 */
		public final static String CHECK_SMS_DATE_EXPRIE = "04004";
		public final static String CHECK_SMS_DATE_EXPRIE_MESSAGE = "验证码已超时失效，请重新获取";
		/**
		 * 帐号不存在
		 */
		public final static String USER_NOT_EXIT = "04005";
		public final static String USER_NOT_EXIT_MESSAGE = "帐号不存在";
		/**
		 * 密码错误
		 */
		public final static String PASSWORD_ERROR = "04006";
		public final static String PASSWORD_ERROR_MESSAGE = "密码错误";
		/**
		 * 用户不存在
		 */
		public final static String CRM_USER_NOT_EXIT = "04007";
		public final static String CRM_USER_NOT_EXIT_MESSAGE = "用户不存在";
		/**
		 * 用户名已经占用
		 */
		public final static String CRM_USER_NAME_EXIT = "04008";
		public final static String CRM_USER_EXIT_NAME_MESSAGE = "该用户名已占用";
	}

	/**
	 * 审核单状态
	 * 
	 * @author lsquan
	 *
	 */
	public class Apply_List_State {
		public final static int WAIT_TYPE = 1;
		public final static int APPLY_TYPE = 2;
		public final static int APPLY_FAIL_TYPE = 3;

		public final static String WAIT = "04010";
		public final static String WAIT_MESSAGE = "等待处理";

		public final static String APPLY_SUCCESS = "04011";
		public final static String APPLY_SUCCESS_MESSAGE = "审核成功";

		public final static String APPLY_FAIL = "04012";
		public final static String APPLY_FAIL_MESSAGE = "审核失败";
	}

	/**
	 * 用户自定义菜单操作
	 *
	 * @author lsquan
	 */
	public class UserFuncOperate {
		public final static String MENU_NOT_EXIT = "05001";
		public final static String MENU_NOT_EXIT_MESSAGE = "菜单不存在";

		public final static String FUNC_NOT_EXIT = "05002";
		public final static String FUNC_NOT_EXIT_MESSAGE = "功能不存在";

		public final static String DELETE_USER_FUNCTION_ERROR = "05003";
		public final static String DELETE_USER_FUNCTION_ERROR_MESSAGE = "删除用户功能失败";

		public final static String DELETE_USER_MENU_ERROR = "05004";
		public final static String DELETE_USER_MENU_ERROR_MESSAGE = "删除用户菜单失败";

	}

	/**
	 * 操作类型
	 *
	 * @author lsquan
	 */
	public class Operate_Type {
		/**
		 * 用户注册
		 */
		public final static int USER_REGISTER = 1;
		public final static String USER_REGISTER_MESSAGE = "用户注册";
		/**
		 * 用户登录
		 */
		public final static int USER_LOGIN = 2;
		public final static String USER_LOGIN_MESSAGE = "用户登录";

		public final static String USER_UNLOGIN="00003";
		public final static String USER_UNLOGIN_MSG = "用户未登录";
	}

	public class Video_Type {

		public final static int ACTIVE_STATUS = 1;

		public final static String GET_VIDEOLIST_ERROR = "01001";
		public final static String GET_VIDEOLIST_ERROR_MESSAGE = "获取全部视频列表失败";

		public final static String GET_COURSELIST_ERROR = "01002";
		public final static String GET_COURSELIST_ERROR_MESSAGE = "获取全部课程列表失败";

		public final static String GET_VIDEOUPLOAD_ERROR = "01003";
		public final static String GET_VIDEOUPLOAD_ERROR_MESSAGE = "视频上传失败";

		public final static String ADD_VIDEOLIST_ERROR_MESSAGE = "新建课程失败,请检查网络原因";

		public final static String ADD_VIDEO_ERROR_MESSAGE = "视频文件找不到，请确认附件上传成功或检查网络问题。";

		public final static String DELETE_COURSE_ERROR_MESSAGE = "课程参数错误，请刷新页面重试";


	}
}
